<template>
  <div class="top" @click="fun()">
      <img src="myimg/1.png" alt="" />
      <a href="#">请登录</a>
      <img class="pic" src="myimg/2.png" alt="" />
    </div>
</template>

<script>
export default {
methods:{
  fun(){
    this.$router.push("/deng")
  }
}
}
</script>

<style scoped>
    .top {
  width: 100%;
  height: 1.1rem;
  background-color: #876243;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.top img {
  display: inline-block;
  width: 0.66rem;
  height: 0.66rem;
  transform: translateX(0.3rem);
}
.top a {
  font-size: 0.16rem;
  color: #fff;
  display: inline-block;
  transform: translateX(0.5rem);
}
.top .pic {
  width: 0.16rem;
  height: 0.16rem;
  background-color: #876243;
  transform: translateY(-0.2rem) translateX(1rem);
}
</style>